<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of newPHPClass
 *
 * @author flutesing
 */
namespace Api\Model;
use Think\Model;
class DoctorApplyAgentModel extends Model {
    //put your code here
    protected $_validate = array(
        array('doctor_id','require','用户医生ID必须！', self::MUST_VALIDATE),
        array('doctor_id','uniqe','您已经申请过了,请耐心等待客服申请通过!', self::MUST_VALIDATE),
        array('username','require','申请人姓名必须！', self::MUST_VALIDATE),
        array('mobile','require','申请人联系电话必须！', self::MUST_VALIDATE)
   );

    protected $_auto = array(
        array('add_time', 'time', self::MODEL_INSERT, 'function')
    );
}
